// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLLimit;
// import com.alibaba.druid.sql.ast.SQLOrderBy;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowRuleStatusStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../../../ast/SQLOrderBy.h"
#include "../../visitor/MySqlASTVisitor.h"

MySqlShowRuleStatusStatement::MySqlShowRuleStatusStatement()
{
  lite = BOOL::TRUE;
}
SQLLimit_ptr MySqlShowRuleStatusStatement::getLimit()
{
  return limit;
}

void MySqlShowRuleStatusStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

SQLOrderBy_ptr MySqlShowRuleStatusStatement::getOrderBy()
{
  return orderBy;
}

void MySqlShowRuleStatusStatement::setOrderBy(SQLOrderBy_ptr orderBy)
{
  this->orderBy = orderBy;
}

SQLExpr_ptr MySqlShowRuleStatusStatement::getWhere()
{
  return where;
}

void MySqlShowRuleStatusStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

BOOL_ptr MySqlShowRuleStatusStatement::isLite()
{
  return lite;
}

void MySqlShowRuleStatusStatement::setLite(BOOL_ptr lite)
{
  this->lite = lite;
}

BOOL_ptr MySqlShowRuleStatusStatement::isFull()
{
  return full;
}

void MySqlShowRuleStatusStatement::setFull(BOOL_ptr full)
{
  this->full = full;
}

void MySqlShowRuleStatusStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowRuleStatusStatement)))
  {
    acceptChild(visitor, where);
    acceptChild(visitor, orderBy);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowRuleStatusStatement));
}

BOOL_ptr MySqlShowRuleStatusStatement::isVersion()
{
  return version;
}

void MySqlShowRuleStatusStatement::setVersion(BOOL_ptr version)
{
  this->version = version;
}
